package com.ayit.car.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 投诉建议表
 * @TableName complaints_suggestions
 */
@TableName(value ="complaints_suggestions")
public class ComplaintsSuggestions implements Serializable {
    /**
     * 唯一标识符
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 提交反馈的用户ID
     */
    private Long userId;

    /**
     * 关联的订单ID，如果反馈与订单相关
     */
    private Long orderId;

    /**
     * 反馈类别
     */
    private Object category;

    /**
     * 反馈内容详情
     */
    private String content;

    /**
     * 提交时间
     */
    private Date submitTime;

    /**
     * 处理状态
     */
    private Object status;

    /**
     * 客服回复内容
     */
    private String replyContent;

    /**
     * 回复时间
     */
    private Date replyTime;

    /**
     * 处理人员ID，可能是员工用户ID
     */
    private Long handlerId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识符
     */
    public Long getId() {
        return id;
    }

    /**
     * 唯一标识符
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 提交反馈的用户ID
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 提交反馈的用户ID
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 关联的订单ID，如果反馈与订单相关
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * 关联的订单ID，如果反馈与订单相关
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * 反馈类别
     */
    public Object getCategory() {
        return category;
    }

    /**
     * 反馈类别
     */
    public void setCategory(Object category) {
        this.category = category;
    }

    /**
     * 反馈内容详情
     */
    public String getContent() {
        return content;
    }

    /**
     * 反馈内容详情
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 提交时间
     */
    public Date getSubmitTime() {
        return submitTime;
    }

    /**
     * 提交时间
     */
    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    /**
     * 处理状态
     */
    public Object getStatus() {
        return status;
    }

    /**
     * 处理状态
     */
    public void setStatus(Object status) {
        this.status = status;
    }

    /**
     * 客服回复内容
     */
    public String getReplyContent() {
        return replyContent;
    }

    /**
     * 客服回复内容
     */
    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    /**
     * 回复时间
     */
    public Date getReplyTime() {
        return replyTime;
    }

    /**
     * 回复时间
     */
    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    /**
     * 处理人员ID，可能是员工用户ID
     */
    public Long getHandlerId() {
        return handlerId;
    }

    /**
     * 处理人员ID，可能是员工用户ID
     */
    public void setHandlerId(Long handlerId) {
        this.handlerId = handlerId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ComplaintsSuggestions other = (ComplaintsSuggestions) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getCategory() == null ? other.getCategory() == null : this.getCategory().equals(other.getCategory()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getSubmitTime() == null ? other.getSubmitTime() == null : this.getSubmitTime().equals(other.getSubmitTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getReplyContent() == null ? other.getReplyContent() == null : this.getReplyContent().equals(other.getReplyContent()))
            && (this.getReplyTime() == null ? other.getReplyTime() == null : this.getReplyTime().equals(other.getReplyTime()))
            && (this.getHandlerId() == null ? other.getHandlerId() == null : this.getHandlerId().equals(other.getHandlerId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getCategory() == null) ? 0 : getCategory().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getSubmitTime() == null) ? 0 : getSubmitTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getReplyContent() == null) ? 0 : getReplyContent().hashCode());
        result = prime * result + ((getReplyTime() == null) ? 0 : getReplyTime().hashCode());
        result = prime * result + ((getHandlerId() == null) ? 0 : getHandlerId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", orderId=").append(orderId);
        sb.append(", category=").append(category);
        sb.append(", content=").append(content);
        sb.append(", submitTime=").append(submitTime);
        sb.append(", status=").append(status);
        sb.append(", replyContent=").append(replyContent);
        sb.append(", replyTime=").append(replyTime);
        sb.append(", handlerId=").append(handlerId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}